<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>博客导航-专注于发掘互联网高质量原创博客</title>
<meta name="keywords" content="博客,博客导航,导航,wordpress,bokedaohang" />
<meta name="description" content="bokedaohang网站以关注互联网原创博客为主要方向，致力于为广大网友提供最为优质的专业博客导航服务" />
<meta name="author" content="bokedaohang" />
<meta name="copyright" content="www.bokedaohang.com" /><link href="http://www.bokedaohang.com/favicon.ico" rel="shortcut icon">
<link type="text/css" href="css/style.css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery_01.js"></script>
<script src="js/interface.js" type="text/javascript"></script>
<script type="text/javascript" src="js/scrolltopcontrol.js"></script>
<script type="text/javascript">
$(function(){
      var $category=$(".nav > .recommend");
	  $category.hide();
	  var $toggleBtn=$(".button span");
	  $toggleBtn.click(function(){
	 if($(this).parent(".button").next().is(":visible")){
		$(this).parent(".button").next().slideUp("slow");
	  	$(this).css("background","url(images/button.gif) 0px 0px").text("展开");
	 }else{
		$(this).parent(".button").next().slideDown("slow");
	   	$(this).css("background","url(images/button.gif) 0px 33px").text("收起");
	 }
	 return false;
	});
	
	$("#search").val('搜索，就是这么简单').css('color','#6d6d6d');
	$("#search").focusin(function(){
		if($('#search').val() =='搜索，就是这么简单'){
			$('#search').val('').css('color','#000');
		}
	}).focusout(function(){
		if($('#search').val() ==''){
			$('#search').val('搜索，就是这么简单').css('color','#6d6d6d');
		}
	
	});
	
	$(".blog a").hover(function(){
		$(this).stop().animate({marginLeft:"8px"},400);
	},function(){
		$(this).stop().animate({marginLeft:"0px"},400);
	});	
});

</script>
<script type="text/javascript">
///友情链接图标favicon
jQuery(document).ready(function($){ 
	$(".link").each(function(e){
		$(this).prepend("<img src=http://www.google.com/s2/favicons?domain="+this.href.replace(/^(http:\/\/[^\/]+).*$/, '$1').replace( 'http://', '' )+" style=float:left;padding-top:12px;padding-right:2px;>");
	}); 
	$(".foot a").each(function(){$(this).css("color","#676767")}).hover(function(){
		$(this).animate({style:"color:#000000"})
	},function(){
		$(this).animate({style:"color:#676767"})
	});

});
</script>
</head>

<body>
<a rel="nofollow" href="feedback.php" class="w-fank">意见反馈</a>
<div id="main">
<?php require 'header.php';?>
	<div class="navmain">
		<img src="images/content_top_wide.png" />
		<div class="nav">
			<?php
				$search = mysql_query("select * from links where audit=1 order by rand() limit 1");
				$searchbox = mysql_fetch_array($search);
			?>
			<p class="navtitle">推荐博客
				<a href="showurl.php?id=<?php echo $searchbox['id'];?>" title='随机打开本站博客' target="_black">随便逛逛</a>
			</p>
			<div class="navtop">
			<?php
				$sql = mysql_query("select * from links where recommend=1 and audit=1 order by visit desc");
				$row = mysql_fetch_array($sql);
				do{
			?>
				<span class="blog"><a href="<?php echo $row['link'];?>" class="link" target="_black"></a><a href="showurl.php?id=<?php echo $row['id']?>" title="<?php echo $row['info'];?>" target="_black"><?php echo $row['name'];?></a></span>			
			<?php 
				}
				while ($row = mysql_fetch_array($sql));
			?>
			</div>
		</div>
		<img src="images/content_bottom_wide.png" />
	</div><br />
	
	<?php
		$sql1 = mysql_query("select * from classify");
		while($row1 = mysql_fetch_array($sql1)){
	?>
	<div class="navmain">
		<img src="images/content_top_wide.png" />
		<div class="nav">
			<?php
				$search1 = mysql_query("select * from links where classname='$row1[classname]' and audit=1 order by rand() limit 1");
				$searchbox1 = mysql_fetch_array($search1);
			?>
			<p class="navtitle"><?php echo $row1['classname']?>
				<a href="showurl.php?id=<?php echo $searchbox1['id'];?>" title='随机打开"<?php echo $row1[classname];?>"博客' target="_black">随便逛逛</a>
			</p>
			<div class="navtop">
				<?php
					$sql2 = mysql_query("select * from links where classname='$row1[classname]' and audit=1 order by visit desc limit 5");
					while($row2 = mysql_fetch_array($sql2)){
				?>
				<span class="blog">
					<a href="<?php echo $row2['link'];?>" class="link" target="_black"></a>
					<a href="showurl.php?id=<?php echo $row2['id']?>" title="<?php echo $row2['info'];?>" target="_black"><?php echo $row2['name'];?></a></span>
				<?php 
					}
				?>	
			</div>
			<div class="button"><span>展开</span></div>
			<div id="recommend" style="display: none; ">
				<?php
					$sql3 = mysql_query("select * from links where classname='$row1[classname]' and audit=1 order by visit desc limit 5,100");
					while($row3 = mysql_fetch_array($sql3)){
				?>
				<span class="blog">
					<a href="<?php echo $row3['link'];?>" class="link" target="_black"></a>
					<a href="showurl.php?id=<?php echo $row3['id']?>" title="<?php echo $row3['info'];?>" target="_black"><?php echo $row3['name'];?></a></span>
				<?php 
					}
				?>	
				<span id="join"><a href="join.php" target="_black">分享博客</a></span>
			</div>
		</div>
		<img src="images/content_bottom_wide.png" />
	</div><br />
	<?php
		}
	?>
<?php require 'footer.php';?>
</div>
</body>
</html>
